<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var str1 = 'Hello js and java';
			console.log(str1.indexOf('js'));// 6
			console.log(str1.indexOf('JS'));// -1
			console.log(str1.lastIndexOf('js'));// 6
			
			var str2 = 'how are you doing today?';
			var array = str2.split(' ');
			console.log(array);//["how", "are", "you", "doing", "today?"]
			console.log(array[1]);// are
			console.log('2:3:4:5'.split(':'))// ["2", "3", "4", "5"]
			
			if(0) {
				console.log('0');
			}
			if(!'') {
				console.log('x');
			}
			if ('hello') {
				console.log('hello')
			}
		</script>
	</body>
</html>
